<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{ title or '' }}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="{{ url_for('static',filename='css/font.css') }}">
    <link rel="stylesheet" href="{{ url_for('static',filename='css/xadmin.css') }}">
    <script type="text/javascript" src="{{ url_for('static',filename='js/jquery.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static',filename='js/swiper.js') }}"></script>
    <script type="text/javascript" src="{{ url_for('static',filename='lib/layui/layui.js') }}" charset="utf-8"></script>
    <script type="text/javascript" src="{{ url_for('static',filename='js/xadmin.js') }}"></script>
    <style>html {
        height: 100%;
    }</style>
</head>
<body>
<div class="wrapper">
    <!-- 左侧菜单开始 -->
    <div class="left-nav">
        <div id="side-nav">
            <div class="layui-side">
                <div class="navBar layui-side-scroll">
                    <ul class="layui-nav layui-nav-tree" id="nav" >
                        <li class="layui-nav-item">
                            <a href="{{ url_for('cms_bp.sys_index') }}" target="content">
                                <i class="fa fa-home fa-lg"></i>
                                后台主页
                            </a>
                        </li>
                        {% if current_user.authority==2 or current_user.authority==1 %}
                            <li class="layui-nav-item list">
                                <a href="javascript:;">
                                    <i class="fa fa-user-o fa-lg"></i>
                                    会员管理
                                </a>
                                <dl class="layui-nav-child">
                                    <dd>
                                        <a href="{{ url_for('cms_bp.member_list') }}" target="content">
                                            <i class="fa fa-circle-o fa-lg"></i>
                                            会员管理
                                        </a>
                                    </dd>
                                    <dd>
                                        <a href="{{ url_for('cms_bp.grade') }}" target="content">
                                            <i class="fa fa-circle-o fa-lg"></i>
                                            等级管理
                                        </a>
                                    </dd>
                                    <dd>
                                        <a href="{{ url_for('cms_bp.del_member_list') }}" target="content">
                                            <i class="fa fa-circle-o fa-lg"></i>
                                            回收站
                                        </a>
                                    </dd>
                                </dl>
                            </li>
                        {% endif %}
                        {% if current_user.authority==3 or current_user.authority==1 %}
                            <li class="layui-nav-item">
                                <a href="javascript:;">
                                    <i class="fa fa-folder-open fa-lg"></i>
                                    档案管理
                                </a>
                                <dl class="layui-nav-child">
                                    <dd>
                                        <a href="{{ url_for('cms_bp.column_list') }}" target="content">
                                            <i class="fa fa-navicon fa-lg"></i>
                                            分类管理
                                        </a>
                                    </dd>
                                    <dd><a href="{{ url_for('cms_bp.document_list') }}" target="content">
                                        <i class="fa fa-archive fa-lg"></i>
                                        文档管理
                                    </a>
                                    </dd>
                                    <dd><a href="{{ url_for('cms_bp.document_recycle') }}" target="content">
                                        <i class="fa fa-trash-o fa-lg"></i>
                                        文档回收站
                                    </a>
                                    </dd>
                                    <dd><a href="{{ url_for('cms_bp.column_recycle') }}" target="content">
                                        <i class="fa fa-trash fa-lg"></i>
                                        分类回收站
                                    </a>
                                    </dd>
                                </dl>
                            </li>
                        {% endif %}
                        {% if current_user.authority==4 or current_user.authority==1 %}
                            <li class="layui-nav-item">
                                <a href="javascript:;">
                                    <i class="fa fa-bug fa-lg"></i>
                                    采集管理
                                </a>
                                <dl class="layui-nav-child">
                                    <dd>
                                        <a href="{{ url_for('cms_bp.collector_add') }}" target="content">
                                            <i class="fa fa-circle-o fa-lg"></i>
                                            新增采集
                                        </a>

                                    </dd>
                                    <dd>
                                        <a href="{{ url_for('cms_bp.collector_list') }}" target="content">
                                            <i class="fa fa-circle-o fa-lg"></i>
                                            采集列表
                                        </a>
                                    </dd>

{#                                    <dd>#}
{#                                        <a href="{{ url_for('cms_bp.self_motion') }}" target="content">#}
{#                                            <i class="fa fa-circle-o fa-lg"></i>#}
{#                                            自动采集#}
{#                                        </a>#}
{#                                    </dd>#}
                                    <dd>
                                        <a href="{{ url_for('cms_bp.collect_history') }}" target="content">
                                            <i class="fa fa-circle-o fa-lg"></i>
                                            历史采集
                                        </a>
                                    </dd>
                                    <dd>
                                        <a href="{{ url_for('cms_bp.collect_proxy') }}" target="content">
                                            <i class="fa fa-circle-o fa-lg"></i>
                                            代理设置
                                        </a>
                                    </dd>
                                </dl>
                            </li>
                        {% endif %}
                        {% if current_user.authority==5 or current_user.authority==1 %}
                            <li class="layui-nav-item">
                                <a href="javascript:;">
                                    <i class="fa fa-cog fa-lg"></i>
                                    系统管理
                                </a>
                                <dl class="layui-nav-child">
                                    <dd>
                                        <a href="{{ url_for('cms_bp.system_ser') }}" target="content">
                                            <i class="fa fa-cog fa-lg"></i>
                                            系统设置
                                        </a>
                                    </dd>
                                    <dd>
                                        <a href="{{ url_for('cms_bp.ad_list') }}" target="content">
                                            <i class="fa fa-buysellads fa-lg"></i>
                                            广告管理
                                        </a>
                                    </dd>
                                    <dd>
                                        <a href="{{ url_for('cms_bp.blogroll_list') }}" target="content">
                                            <i class="fa fa-link fa-lg"></i>
                                            友情链接
                                        </a>
                                    </dd>
{#                                    <dd>#}
{#                                        <a target="content">#}
{#                                            <i class="fa fa-circle-o fa-lg"></i>#}
{#                                            更新缓存#}
{#                                        </a>#}
{#                                    </dd>#}
                                    <dd>
                                        <a href="{{ url_for('cms_bp.share') }}" target="content">
                                            <i class="fa fa-external-link fa-lg"></i>
                                            分享接口
                                        </a>
                                    </dd>
                                    <dd>
                                        <a href="{{ url_for('cms_bp.discuss') }}" target="content">
                                            <i class="fa fa-commenting fa-lg"></i>
                                            评论接口
                                        </a>
                                    </dd>
                                    <dd>
                                        <a href="{{ url_for('cms_bp.log_list') }}" target="content">
                                            <i class="fa fa-paw fa-lg"></i>
                                            后台日志
                                        </a>
                                    </dd>
                                </dl>
                            </li>
                        {% endif %}
                        {% if current_user.authority==1 %}
                            <li class="layui-nav-item">
                                <a href="javascript:;">
                                    <i class="fa fa-folder-open fa-lg"></i>
                                    其他设置
                                </a>
                                <dl class="layui-nav-child">
                                    <dd>
                                        <a href="{{ url_for('cms_bp.ad_cooperation') }}" target="content">
                                            <i class="fa fa-audio-description fa-lg"></i>
                                            广告合作
                                        </a>
                                    </dd>
                                    <dd><a href="{{ url_for('cms_bp.contribute') }}" target="content">
                                        <i class="fa fa-rocket fa-lg"></i>
                                        投稿说明
                                    </a>
                                    </dd>
                                    <dd><a href="{{ url_for('cms_bp.feedback') }}" target="content">
                                        <i class="fa fa-envelope-o fa-lg"></i>
                                        留言反馈
                                    </a>
                                    </dd>
                                    <dd><a href="{{ url_for('cms_bp.infringement') }}" target="content">
                                        <i class="fa fa-bell-o fa-lg"></i>
                                        侵权管理
                                    </a>
                                    </dd>
                                </dl>
                            </li>
                            <li class="layui-nav-item">
                                <a href="{{ url_for('cms_bp.admin_list') }}" target="content">
                                    <i class="fa fa-user-circle fa-lg"></i>
                                    &nbsp;管&nbsp;理&nbsp;员
                                </a>
                            </li>
                            <li class="layui-nav-item">
                                <a href="{{ url_for('cms_bp.api_set') }}" target="content">
                                    <i class="fa fa-key fa-lg"></i>
                                    API接口
                                </a>
                            </li>
                            <li class="layui-nav-item">
                                <a href="{{ url_for('cms_bp.accredit_set') }}" target="content">
                                    <i class="fa fa-handshake-o fa-lg"></i>
                                    系统授权
                                </a>
                            </li>
                        {% endif %}
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>